/**
 *   This file is part of Graph-Tool.
 *
 *   Graph-Tool is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   Graph-Tool is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with Graph-Tool.  If not, see <http://www.gnu.org/licenses/>.
 */
package graphtool.math.matrices;

/**
 * @author a.lunkeit - alunkeit(at)gmail(dot)com
 * 
 * An Index Exception is thrown in case that the matrix does not
 * have the expected indices as required by a programmed statement
 */
public class IndexException extends Exception
{

  /**
   * 
   */
  private static final long serialVersionUID = -971712946544491818L;

  /**
   * 
   */
  public IndexException()
  {
  }

  /**
   * @param arg0
   */
  public IndexException( String arg0 )
  {
    super( arg0 );
  }

  /**
   * @param arg0
   */
  public IndexException( Throwable arg0 )
  {
    super( arg0 );
  }

  /**
   * @param arg0
   * @param arg1
   */
  public IndexException( String arg0, Throwable arg1 )
  {
    super( arg0, arg1 );
  }

  /**
   * @param arg0
   * @param arg1
   * @param arg2
   * @param arg3
   */
  public IndexException( String arg0, Throwable arg1, boolean arg2, boolean arg3 )
  {
    super( arg0, arg1, arg2, arg3 );
  }
  
  public IndexException( Dimension d, int column, int row )
  {
    super( "Requested index not found at column: " + column + " and row: " + row + " , matrix dimension is: " + d.toString());
  }

}
